//
//  BZYCategoryController.m
//  BZYMeituan
//
//  Created by 毕仲阳 on 16/9/15.
//  Copyright © 2016年 mycompany. All rights reserved.
//

#import "BZYCategoryController.h"
#import "BZYDropDownView.h"

@interface BZYCategoryController ()

@end

@implementation BZYCategoryController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    BZYDropDownView *dropView = [BZYDropDownView dropDownView];
    [self.view addSubview:dropView];
    
    self.preferredContentSize = dropView.size;
    NSArray *categoryPlist = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"categories.plist" ofType:nil]];
    dropView.categoryArray = [NSArray yy_modelArrayWithClass:NSClassFromString(@"BZYCategoryModel") json:categoryPlist];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
